var cssArr = [
    "./css/cashier_mana/reservation.css",
    "./css/plugin/digitalCalculator.css",
    "./assets/css/jquery.gritter.css",
    "./assets/css/ui.jqgrid.css",
    "./assets/css/bootstrap.css",
    "./assets/css/font-awesome.css",
    "./assets/css/ace-fonts.css",
    "./assets/css/ace.css",
    "./assets/css/bootstrap-editable.css",
    "./assets/css/chosen.css",
    "./css/plugin/liMarquee.css",
    "./assets/popover/css/jquery.webui-popover.min.css"
];

var jsArr = [
    "./assets/js/ace-extra.js",
    "./assets/js/bootstrap.js",
    "./assets/js/jquery-ui.custom.js",
    "./assets/js/jquery.ui.touch-punch.js",
    "./assets/js/jquery.easypiechart.js",
    "./assets/js/jquery.sparkline.js",
    "./assets/js/flot/jquery.flot.js",
    "./assets/js/flot/jquery.flot.pie.js",
    "./assets/js/flot/jquery.flot.resize.js",
    "./assets/js/ace/elements.scroller.js",
    "./assets/js/ace/elements.colorpicker.js",
    "./assets/js/ace/elements.fileinput.js",
    "./assets/js/ace/elements.typeahead.js",
    "./assets/js/ace/elements.wysiwyg.js",
    "./assets/js/ace/elements.spinner.js",
    "./assets/js/ace/elements.treeview.js",
    "./assets/js/ace/elements.wizard.js",
    "./assets/js/ace/elements.aside.js",
    "./assets/js/ace/ace.js",
    "./assets/js/ace/ace.ajax-content.js",
    "./assets/js/ace/ace.touch-drag.js",
    "./assets/js/ace/ace.sidebar.js",
    "./assets/js/ace/ace.sidebar-scroll-1.js",
    "./assets/js/ace/ace.submenu-hover.js",
    "./assets/js/ace/ace.widget-box.js",
    "./assets/js/ace/ace.settings.js",
    "./assets/js/ace/ace.settings-rtl.js",
    "./assets/js/ace/ace.settings-skin.js",
    "./assets/js/ace/ace.widget-on-reload.js",
    "./assets/js/ace/ace.searchbox-autocomplete.js",
    "./assets/js/bootbox.js",
    "./assets/js/x-editable/bootstrap-editable.js",
    "./assets/js/x-editable/ace-editable.js",
    "./assets/popover/js/jquery.webui-popover.min.js",
    "./js/plugin/jquery.bootstrap.modalFrame.js",
    "./js/plugin/jquery.liMarquee.js",
    "./js/plugin/indexMenu.js",
    "./assets/js/jquery.gritter.js",
    "./js/plugin/jquery.jqGrid.js",
    "./assets/js/jqGrid/i18n/grid.locale-cn.js",
    "./js/huasheng.js",
];

$(cssArr).each(function(k,v){
    var random = Math.random();
    document.write('<link rel="stylesheet" href="'+v+"?v="+random+'" />');
});

$(jsArr).each(function(k,v){
    var random = Math.random();
    document.write('<script src="'+v+"?v="+random+'"></script>');
})